import Taro from '@tarojs/taro'
import { View, Image } from '@tarojs/components'
import './index.scss';
interface IProps {
    src: string
    fontSize: number
    title: string
    imageWidth: number
    className?: string
}

export const IconImage = (props: IProps) => {
    return (
        <View className={`icon-box`}>
            <Image src={props.src} mode='widthFix' style={{ width: `${props.imageWidth}px` }} />
            <View className="title"
                style={{
                    fontSize: props.fontSize
                }}
            >{props.title}</View>
        </View>
    )
}
